package actionScripts.utils
{
	import actionScripts.LoginModelLocator;

	public class Utils
	{
		private static var appModelLocator : LoginModelLocator = LoginModelLocator.getInstance();
		public function Utils(){
		}
		//For Setting View Index
		public static  function setViewIndex(viewId:String):void{
			switch(viewId){
				case AppConstant.LOGIN_VIEW:
					appModelLocator.applicationStage.loginPanel.visible     = true;
					appModelLocator.applicationStage.regPanel.visible       = false;
					appModelLocator.applicationStage.dashBoardPanel.visible = false;
					appModelLocator.applicationStage.loginPanel.init();
					break;
				case AppConstant.REGISTER_VIEW:
					appModelLocator.applicationStage.loginPanel.visible     = false;
					appModelLocator.applicationStage.regPanel.visible       = true;
					appModelLocator.applicationStage.dashBoardPanel.visible = false;
					appModelLocator.applicationStage.regPanel.reset();
					break;
				case AppConstant.DASHBOARD_VIEW:
					appModelLocator.applicationStage.loginPanel.visible     = false;
					appModelLocator.applicationStage.regPanel.visible       = false;
					appModelLocator.applicationStage.dashBoardPanel.visible = true;
					appModelLocator.applicationStage.dashBoardPanel.init();
					break;
			}
			
		}
	}
}